/****************************************************************************
 *
 * Copyright (C) 2003-2008 Los Alamos National Security, LLC
 *                         Packet Analytics Corporation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License Version 2 as
 * published by the Free Software Foundation.  You may not use, modify or
 * distribute this program under any other version of the GNU General
 * Public License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 ****************************************************************************/
package nfse.gui.config;

import com.google.gwt.user.client.rpc.*;


public interface ConfigServiceAsync {

    public void addCriticalServer(CriticalServerEntry server, AsyncCallback callback);

    public void addNetFlowConfig(NetFlowConfig config, AsyncCallback callback);

    public void addSensor(SensorInfo info, AsyncCallback callback);

    public void addSyslogConfig(SyslogConfig config, AsyncCallback callback);

    public void addUser(UserInfo userInfo, AsyncCallback callback);

    public void deleteNetFlowConfig(NetFlowConfig config, AsyncCallback callback);

    public void deleteSensor(int sensorID, AsyncCallback callback);

    public void deleteSyslogConfig(SyslogConfig config, AsyncCallback callback);

    public void editNetFlowConfig(NetFlowConfig config, AsyncCallback callback);

    public void editSyslogConfig(SyslogConfig config, AsyncCallback callback);

    public void getCriticalServers(AsyncCallback callback);

    public void getDailyRecordCounts(int numDays, AsyncCallback callback);

    public void getEmailReportConfigs(AsyncCallback callback);

    public void getNetFlowConfigs(AsyncCallback callback);

    public void getSensorInfo(AsyncCallback callback);

    public void getSyslogConfigs(AsyncCallback callback);

    public void getTypeInfo(AsyncCallback callback);

    public void getUserInfo(AsyncCallback callback);

    public void getUsers(AsyncCallback callback);

    public void removeCriticalServer(String ip, AsyncCallback callback);

    public void setPasswordAdmin(String user, String password, AsyncCallback callback);

    public void setPasswordUser(String oldPassword, String newPassword, AsyncCallback callback);

    public void syslogAndNetFlowControl(int sensorID, int opType, AsyncCallback callback);

    public void updateCriticalServer(String ip, CriticalServerEntry server, AsyncCallback callback);

    public void updateEmailReportConfigs(EmailReportConfigs configs, AsyncCallback callback);
    
    public void updateUser(String userName, UserInfo userInfo, AsyncCallback callback);

}
